package com.springmvc.demo.domain;

import java.io.Serializable;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * student
 * @Author: TDW
 * @Date: 2015年8月5日 上午10:38:58 
 * @ModifyUser: TDW
 * @ModifyDate: 2015年8月5日 上午10:38:58 
 * @Version:V1.0
 */
@SuppressWarnings("serial")
@Entity
@Table(name="t_student")
public class Student implements Serializable {
	
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	private Integer id;

	private Integer userId;
	
	private Integer roleId;


	public Integer getId()
	{
		return id;
	}

	public void setId(Integer id)
	{
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public Integer getRoleId()
	{
		return roleId;
	}

	public void setRoleId(Integer roleId)
	{
		this.roleId = roleId;
	}

	public void setUserId(Integer userId)
	{
		this.userId = userId;
	}
}
